// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers.  See the top-level LICENSE file for dates and other
// details.  No copyright assignment is required to contribute to VisIt.

// ****************************************************************************
//  avtHTGWriter.h
// ****************************************************************************

#ifndef AVT_HTG_WRITER_H
#define AVT_HTG_WRITER_H

#include <avtDatabaseWriter.h>

#include <string>

class DBOptionsAttributes;

// ****************************************************************************
//  Class: avtHTGWriter
//
//  Purpose:
//      A module that writes out HTG files.
//
//  Programmer: brugger -- generated by xml2avt
//  Creation:   Mon May 1 15:28:30 PST 2023
//
// ****************************************************************************

class
avtHTGWriter : public avtDatabaseWriter
{
  public:
                   avtHTGWriter(const DBOptionsAttributes *);
    virtual       ~avtHTGWriter() {;}

  protected:
    std::string    stem;

    virtual void   OpenFile(const std::string &, int nb);
    virtual void   WriteHeaders(const avtDatabaseMetaData *,
                                const std::vector<std::string> &,
                                const std::vector<std::string> &,
                                const std::vector<std::string> &);
    virtual void   WriteChunk(vtkDataSet *, int);
    virtual void   CloseFile(void);

  private:
    double         blankValue;
};


#endif
